<!-- HTML header for doxygen 1.8.9.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
<title>Compute Library: LoggerRegistry Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Compute Library
   &#160;<span id="projectnumber">18.05</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.xhtml"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.xhtml"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.xhtml"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.xhtml"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.xhtml"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="inherits.xhtml"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.xhtml"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classarm__compute_1_1logging_1_1_logger_registry.xhtml','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">LoggerRegistry Class Reference<span class="mlabels"><span class="mlabel">final</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>Registry class holding all the instantiated loggers.  
 <a href="classarm__compute_1_1logging_1_1_logger_registry.xhtml#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_logger_registry_8h_source.xhtml">LoggerRegistry.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:af1d6f8c290a087deee5c7cb1e888b60c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1logging_1_1_logger_registry.xhtml#af1d6f8c290a087deee5c7cb1e888b60c">create_logger</a> (const std::string &amp;name, <a class="el" href="namespacearm__compute_1_1logging.xhtml#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a> log_level=<a class="el" href="namespacearm__compute_1_1logging.xhtml#aca1fd1d8935433e6ba2e3918214e07f9a551b723eafd6a31d444fcb2f5920fbd3">LogLevel::INFO</a>, std::vector&lt; std::shared_ptr&lt; <a class="el" href="classarm__compute_1_1logging_1_1_printer.xhtml">Printer</a> &gt;&gt; printers={std::make_shared&lt; <a class="el" href="classarm__compute_1_1logging_1_1_std_printer.xhtml">StdPrinter</a> &gt;()})</td></tr>
<tr class="memdesc:af1d6f8c290a087deee5c7cb1e888b60c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a logger.  <a href="#af1d6f8c290a087deee5c7cb1e888b60c">More...</a><br /></td></tr>
<tr class="separator:af1d6f8c290a087deee5c7cb1e888b60c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04f9779505522e380dde1c613d9cc9e8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1logging_1_1_logger_registry.xhtml#a04f9779505522e380dde1c613d9cc9e8">remove_logger</a> (const std::string &amp;name)</td></tr>
<tr class="memdesc:a04f9779505522e380dde1c613d9cc9e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove a logger.  <a href="#a04f9779505522e380dde1c613d9cc9e8">More...</a><br /></td></tr>
<tr class="separator:a04f9779505522e380dde1c613d9cc9e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7e425a747fcb8467d6577fad81fcb6c"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml">Logger</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1logging_1_1_logger_registry.xhtml#af7e425a747fcb8467d6577fad81fcb6c">logger</a> (const std::string &amp;name)</td></tr>
<tr class="memdesc:af7e425a747fcb8467d6577fad81fcb6c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a logger instance.  <a href="#af7e425a747fcb8467d6577fad81fcb6c">More...</a><br /></td></tr>
<tr class="separator:af7e425a747fcb8467d6577fad81fcb6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae3c25bae86520441a5631e6a7960061"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1logging_1_1_logger_registry.xhtml#aae3c25bae86520441a5631e6a7960061">create_reserved_loggers</a> (<a class="el" href="namespacearm__compute_1_1logging.xhtml#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a> log_level=<a class="el" href="namespacearm__compute_1_1logging.xhtml#aca1fd1d8935433e6ba2e3918214e07f9a551b723eafd6a31d444fcb2f5920fbd3">LogLevel::INFO</a>, std::vector&lt; std::shared_ptr&lt; <a class="el" href="classarm__compute_1_1logging_1_1_printer.xhtml">Printer</a> &gt;&gt; printers={std::make_shared&lt; <a class="el" href="classarm__compute_1_1logging_1_1_std_printer.xhtml">StdPrinter</a> &gt;()})</td></tr>
<tr class="memdesc:aae3c25bae86520441a5631e6a7960061"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates reserved library loggers.  <a href="#aae3c25bae86520441a5631e6a7960061">More...</a><br /></td></tr>
<tr class="separator:aae3c25bae86520441a5631e6a7960061"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a56eefda612262945a6f832d1196ee720"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classarm__compute_1_1logging_1_1_logger_registry.xhtml">LoggerRegistry</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1logging_1_1_logger_registry.xhtml#a56eefda612262945a6f832d1196ee720">get</a> ()</td></tr>
<tr class="memdesc:a56eefda612262945a6f832d1196ee720"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets registry instance.  <a href="#a56eefda612262945a6f832d1196ee720">More...</a><br /></td></tr>
<tr class="separator:a56eefda612262945a6f832d1196ee720"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Registry class holding all the instantiated loggers. </p>

<p>Definition at line <a class="el" href="_logger_registry_8h_source.xhtml#l00041">41</a> of file <a class="el" href="_logger_registry_8h_source.xhtml">LoggerRegistry.h</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="af1d6f8c290a087deee5c7cb1e888b60c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void create_logger </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacearm__compute_1_1logging.xhtml#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a>&#160;</td>
          <td class="paramname"><em>log_level</em> = <code><a class="el" href="namespacearm__compute_1_1logging.xhtml#aca1fd1d8935433e6ba2e3918214e07f9a551b723eafd6a31d444fcb2f5920fbd3">LogLevel::INFO</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::shared_ptr&lt; <a class="el" href="classarm__compute_1_1logging_1_1_printer.xhtml">Printer</a> &gt;&gt;&#160;</td>
          <td class="paramname"><em>printers</em> = <code>{std::make_shared&lt;&#160;<a class="el" href="classarm__compute_1_1logging_1_1_std_printer.xhtml">StdPrinter</a>&#160;&gt;()}</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a logger. </p>
<dl class="section note"><dt>Note</dt><dd>Some names are reserved e.g. [CORE, RUNTIME, GRAPH]</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">name</td><td><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml" title="Logger class. ">Logger</a>'s name </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">log_level</td><td><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml" title="Logger class. ">Logger</a>'s log level. Defaults to INFO </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">printers</td><td>Printers to attach to the system loggers. Defaults with a <a class="el" href="classarm__compute_1_1logging_1_1_std_printer.xhtml">StdPrinter</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aae3c25bae86520441a5631e6a7960061"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void create_reserved_loggers </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacearm__compute_1_1logging.xhtml#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a>&#160;</td>
          <td class="paramname"><em>log_level</em> = <code><a class="el" href="namespacearm__compute_1_1logging.xhtml#aca1fd1d8935433e6ba2e3918214e07f9a551b723eafd6a31d444fcb2f5920fbd3">LogLevel::INFO</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::shared_ptr&lt; <a class="el" href="classarm__compute_1_1logging_1_1_printer.xhtml">Printer</a> &gt;&gt;&#160;</td>
          <td class="paramname"><em>printers</em> = <code>{std::make_shared&lt;&#160;<a class="el" href="classarm__compute_1_1logging_1_1_std_printer.xhtml">StdPrinter</a>&#160;&gt;()}</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates reserved library loggers. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">log_level</td><td>(Optional) <a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml" title="Logger class. ">Logger</a>'s log level. Defaults to INFO </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">printers</td><td>(Optional) Printers to attach to the system loggers. Defaults with a <a class="el" href="classarm__compute_1_1logging_1_1_std_printer.xhtml">StdPrinter</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a56eefda612262945a6f832d1196ee720"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classarm__compute_1_1logging_1_1_logger_registry.xhtml">LoggerRegistry</a>&amp; get </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets registry instance. </p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml" title="Logger class. ">Logger</a> registry instance </dd></dl>

</div>
</div>
<a class="anchor" id="af7e425a747fcb8467d6577fad81fcb6c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt;<a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml">Logger</a>&gt; logger </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns a logger instance. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">name</td><td><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml" title="Logger class. ">Logger</a> to return</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml" title="Logger class. ">Logger</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a04f9779505522e380dde1c613d9cc9e8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void remove_logger </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Remove a logger. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml" title="Logger class. ">Logger</a>'s name </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>arm_compute/core/utils/logging/<a class="el" href="_logger_registry_8h_source.xhtml">LoggerRegistry.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacearm__compute.xhtml">arm_compute</a></li><li class="navelem"><a class="el" href="namespacearm__compute_1_1logging.xhtml">logging</a></li><li class="navelem"><a class="el" href="classarm__compute_1_1logging_1_1_logger_registry.xhtml">LoggerRegistry</a></li>
    <li class="footer">Generated on Wed May 23 2018 11:36:43 for Compute Library by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
